﻿@model DotNetUniLodz.Models.User

@{
    ViewBag.Title = Model.User_login;
}
<div id="Content100">
    <h2>@ViewBag.Title</h2>

    <fieldset id="CreateItem" class="FieldsetInline" style="width:26%;">
        <legend>Dane użytkownika</legend>

        <div class="display-label">
            Login
        </div>
        <div class="display-field">
            @Html.DisplayFor(model => model.User_login)
        </div>

        <div class="display-label">
            Imię
        </div>
        <div class="display-field">
            @Html.DisplayFor(model => model.User_firstName)
        </div>

        <div class="display-label">
            Nazwisko
        </div>
        <div class="display-field">
            @Html.DisplayFor(model => model.User_lastName)
        </div>

        <div class="display-label">
            Email
        </div>
        <div class="display-field">
            @Html.DisplayFor(model => model.User_mail)
        </div>

        <div class="display-label">
            Data rejestracji
        </div>
        <div class="display-field">
            @Html.DisplayFor(model => model.User_regDate)
        </div>

        <div class="display-label">
            Ranga
        </div>
        <div class="display-field">
            @Html.DisplayFor(model => model.Role.Role_name)
        </div>
    </fieldset>

    @Html.Action("_NewsFromUser", new { userlogin = Model.User_login })
    <div style="clear:both;"></div>
</div>

<p>
    @*    @if (ViewBag.IsCurrentUser != null && (bool)ViewBag.IsCurrentUser)
    {
        @Html.ActionLink("Edytuj", "Edit", new { id = Model.User_id }, new { @class = "SuperLink" })
    }*@
    @Html.ActionLink("Powrót do listy użytkowników", "Index", null, new { @class = "SuperLink" })
</p>
